stages:
  - build
  - upload
  - deploy

job_build:
  stage: build
  script:
    - echo "Building the project"
    - docker build -t getting-started-app:$CI_COMMIT_SHORT_SHA .

job_upload:
  stage: upload
  script:
    - echo "Uploading the project"
    - kind load docker-image getting-started-app:${CI_COMMIT_SHORT_SHA}
    
job_deploy:
  environment:
    name: production
  stage: deploy
  script: 
    - echo "Deploying the project"
    - kubectl get pods

